package cn.com.config;

public class AppDataSourceContext {

    private static final ThreadLocal<Boolean> APP = ThreadLocal.withInitial(() -> Boolean.FALSE);

    public static void setApp(Boolean app) {
        APP.set(app);
    }

    public static Boolean getApp() {
        return APP.get();
    }

    public static void remove() {
        APP.remove();
    }
}
